_agent = _this select 0;

_dummyAction = _agent addAction["foo", "transportation\callTaxi.sqf"];
while {_dummyAction >= 0} do {
	_agent removeAction _dummyAction;
	_dummyAction = _dummyAction - 1;
};